package com.daniel.design.principles.demo5;

/**
 * @ClassName Agent
 * @Description 经纪人类
 * @Author Daniel
 * @Version V1.0.0
 */
public class Agent {
    private Star mStar;
    private Fans mFans;
    private Company mCompany;

    public void setStar(Star star) {
        mStar = star;
    }

    public void setFans(Fans fans) {
        mFans = fans;
    }

    public void setCompany(Company company) {
        mCompany = company;
    }

    public void meeting() {
        System.out.println(mFans.getName() + " 和 " + mStar.getName() + " 见面");
    }

    public void business() {
        System.out.println(mCompany.getName() + " 和 " + mStar.getName() + " 浅谈合作");
    }

    public static void main(String[] args) {
        Agent agent = new Agent();
        agent.setStar(new Star("黄渤"));
        agent.setFans(new Fans("路人甲"));
        agent.setCompany(new Company("霸王弓"));

        agent.meeting();
        agent.business();
    }
}
